package com.kcwoo.shaokun.rxjavalearning.db;

import android.arch.persistence.room.Database;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;

import com.kcwoo.shaokun.rxjavalearning.arc.User;

import java.util.List;

/**
 * Created by kevin on 2017/11/10.
 * step one small every day
 */
@android.arch.persistence.room.Dao
public interface Dao {
    @Query("select * from stu")
    public List<User> getAll();

    @Insert(onConflict = 1)
    public List<User> insert(Stu ...stus);
}
